package com.atguigu.cloud.hystrix.order80.service.impl;

import com.atguigu.cloud.common.vo.CommonResult;
import com.atguigu.cloud.hystrix.order80.service.PaymentService;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallback implements PaymentService {
    @Override
    public CommonResult paymentInfo_OK(Integer id) {
        String result ="我是消费者80,paymentInfo_OKFallback对方支付系统繁忙请10秒钟后再试或者自己运行出错请检查自己,o(╥﹏╥)o";
        return CommonResult.ok().data("result",result);
    }

    @Override
    public CommonResult paymentInfo_TimeOut(Integer id) {
        String result ="我是消费者80,paymentInfo_TimeOutFallback运行出错请检查自己,o(╥﹏╥)o";
        return CommonResult.ok().data("result",result);
    }
}
